<?php
	
/* More complex example, with variables. */

class TestControlStructures
{ 

	function checkLogical()
	{
		$a = True;
		$b = false;
		if (($a and $b)===true){
		
	print_r("<br>"."testCotrolStructures-checkLogical: true" );//xuong dong
	
		}
		else {print_r("<br>"."testCotrolStructures-checkLogical: false");
		}
	
	}
	function checkWhile()
	{
		$i = 5;
		while ($i <= 10) {
			//echo $i++;  
			
			/* the printed value would be
						   $i before the increment
						   (post-increment) */
						   
		print_r ($i);		
			$i = $i+1;			   
						   
		}
	}
	
}?>
<br/>
<b>required: class TestControlStructures</b>
